<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@page import="support.*, java.util.*" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Residency</title>
</head>
<body>

<% 
	String streetParam = request.getParameter("street");
	String cityParam = request.getParameter("city");
	String stateParam = request.getParameter("state");
	String countryCodeParam = request.getParameter("countryCode");
	String zipParam = request.getParameter("zip");
	String areaCodeParam = request.getParameter("areaCode");
	String phoneParam = request.getParameter("phone");
	
	session.setAttribute( "streetSes", streetParam );
	session.setAttribute( "citySes", cityParam );
	if(stateParam != null)
	{
		session.setAttribute( "stateSes", stateParam);
	}
	else
	{
		session.setAttribute( "countryCodeSes", countryCodeParam );
	}	
	
	session.setAttribute( "zipSes", zipParam );
	session.setAttribute( "areaCodeSes", areaCodeParam );
	session.setAttribute( "phoneSes", phoneParam );

%>	
	<%= session.getAttribute("firstNameSes") %>
	<%= session.getAttribute("middleInitialSes") %>
	<%= session.getAttribute("lastNameSes") %><br>
	Citizen of <%= session.getAttribute("citizenSes") %><br>
	Resident of <%= session.getAttribute("residentSes") %><br>
	Address: <%= session.getAttribute("streetSes") %><br>
	City: <%= session.getAttribute("citySes") %><br>
	<%
	if( stateParam != null )
	{ %>
		State: <%= session.getAttribute("stateSes") %><br>
	<%
	}
	else
	{ %>
		Country Code: <%= session.getAttribute("countryCodeSes") %><br>
		
	<% } %>
	Zip: <%= session.getAttribute("zipSes") %><br>
	Phone Number: (<%= session.getAttribute("areaCodeSes") %>) <%= session.getAttribute("phoneSes") %><br>
	<br>
			
	
	
	<form method="GET" action="6_DegreeLocation.jsp">
	US Permanent Resident:<input type="radio" name="permanentResident" value="Permanent US Resdient"/>
	Non-Resident:<input type="radio" name="permanentResident" value="Not a US Resident"/>
	<input type="submit" value="Click to Submit"/>
	</form>
	
	



<br><br>

</body>
</html>